

/*
    数组


*/

const arr = [];
const arr1 = new Array();
const arr2 = new Array(5);
const arr3 = Array.of(1, "2", {}, 4);

console.log(arr1);
console.log(arr2.length);
arr2[10] = 1;
console.log(arr2);

arr2.fill(0);
console.log(arr2);

let str = arr2.join("-");
console.log(str);
// for (a in arr2) {
//     console.log(a);
// }

// console.log(arr2);
// console.log(arr3);

// console.log(arr3.every((e) => {
//     return typeof (e) != undefined;
// }));


// const nums = arr3.filter((e) => typeof (e) == 'number');
// console.log(nums);
